"""
创建列表,使用迭代思想,打印每个元素
"""

movies = ['南京照相馆','金陵十三钗','南京大屠杀','一九四二']

iterator = movies.__iter__()

while True:
    try:
        item = iterator.__next__()
        print(item)
    except StopIteration:
        break